//
//  MyHourMinutePickerView.h
//  datePickerView
//
//  Created by lianchuang on 14-11-21.
//  Copyright (c) 2014年 lianchuang. All rights reserved.
//

#import <UIKit/UIKit.h>

#define HourMinute_DATE_FORMAT @"HH:mm"//yyyy-MM-dd
#define HOUR_CIRCULATE_TIMES 500
#define HOUR_COUNT 24

#define MINUTE_CIRCULATE_TIMES 200
#define MINUTE_COUNT 60

@interface MyHourMinutePickerView : UIView


// 完成并取消显示
@property (nonatomic, strong) UIButton *sureButton;

@property (nonatomic, strong) UIButton *cancelButton;

@property (nonatomic, strong) UIPickerView *pickerView;
@property (nonatomic, strong) NSDate *defaultDate;

//下面几个属性可以用来单独提取单个时间元素
@property (nonatomic, readonly) NSInteger year;
@property (nonatomic, readonly) NSInteger month;
@property (nonatomic, readonly) NSInteger day;

@property (nonatomic, readonly) NSInteger hour;
@property (nonatomic, readonly) NSInteger minute;
//获取时间对象
- (NSDate *)getDate;

//获取时间字符串, 想要自定义字符串格式可以在上边修改
- (NSString *)getDateString;
@end
